<html>
<head><meta charset="utf-8"><title>Issue #76701 · t-compiler/const-eval · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/index.html">t-compiler/const-eval</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/Issue.20.2376701.html">Issue #76701</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209989020"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/Issue%20%2376701/near/209989020" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Hameer Abbasi <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/Issue.20.2376701.html#209989020">(Sep 14 2020 at 10:54)</a>:</h4>
<p><span class="user-mention" data-user-id="216206">@lcnr</span> Apologies if the ping is unwelcome, could you help me get started on <a href="https://github.com/rust-lang/rust/issues/76701">#76701</a>?</p>



<a name="210026188"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/Issue%20%2376701/near/210026188" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/Issue.20.2376701.html#210026188">(Sep 14 2020 at 16:00)</a>:</h4>
<p>no worries <span aria-label="thumbs up" class="emoji emoji-1f44d" role="img" title="thumbs up">:thumbs_up:</span></p>



<a name="210026222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/Issue%20%2376701/near/210026222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/Issue.20.2376701.html#210026222">(Sep 14 2020 at 16:00)</a>:</h4>
<p>do you already understand what the goal is here?</p>



<a name="210026492"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/Issue%20%2376701/near/210026492" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/Issue.20.2376701.html#210026492">(Sep 14 2020 at 16:02)</a>:</h4>
<p>I think a good way to start would be to look at <code>enum ResolutionError</code>and change <code>ParamInNonTrivialAnonConst</code> to take an <code>Option</code>,<br>
then I would expect you to mostly be guided by the resulting build errors</p>



<a name="210026531"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/Issue%20%2376701/near/210026531" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Hameer Abbasi <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/Issue.20.2376701.html#210026531">(Sep 14 2020 at 16:02)</a>:</h4>
<p>I do, changing the error message -- I just don't know how to check if we're in <code>min_const_generics</code> mode vs <code>const_generics</code> vs none of the two.</p>



<a name="210027080"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/Issue%20%2376701/near/210027080" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/Issue.20.2376701.html#210027080">(Sep 14 2020 at 16:05)</a>:</h4>
<p>you do not have to check this here, <code>ParamInNonTrivialAnonConst</code> is already only used when <code>min_const_generics</code> is active</p>



<a name="210027179"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146212-t-compiler/const-eval/topic/Issue%20%2376701/near/210027179" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/146212-t-compiler/const-eval/topic/Issue.20.2376701.html#210027179">(Sep 14 2020 at 16:06)</a>:</h4>
<p>(also, the way to check this is either <code>tcx.features().min_const_generics</code> or <code>sess.features_unchecked().min_const_generics</code>, depending on where in the compiler you are)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>